= render ::Layouts::SettingsBlockComponent.new(_('Visibility and access controls'),
  id: 'js-global-search-settings',
  testid: 'admin-global-search-settings',
  expanded: expanded_by_default?) do |c|
  - c.with_description do
    = _('Configure search access and visibility settings for search scopes.')
    = link_to _('Learn more.'), help_page_path('user/search/_index.md', anchor: 'restrict-search-access'), target: '_blank', rel: 'noopener noreferrer'
  - c.with_body do
    = gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-global-search-settings'), html: { class: 'fieldset-form', id: 'global-search-settings' } do |f|
      = form_errors(@application_setting)
      %fieldset
        .form-group
          - global_search_settings_checkboxes(f).each do |checkbox|
            = checkbox
      = f.submit _('Save changes'), pajamas_button: true
